// 快捷方式
import variables from '@/styles/variables.scss'
import store from '@/store'

export default {
    token : state => state.user.token, 
    hasUserInfo : state => {
       return JSON.stringify(state.user.userInfo) !== '{}'
    },
    userInfo: state => state.user.userInfo, // 用户信息
    cssVar: () => variables, // 全局scss
    sidebarOpened: state =>  state.app.sidebarOpened, //Sidebar 状态
    language: state => state.app.language //获取当前语言
}